import request from '@/utils/request'

// 登录
export const loginUser = (data) => request.post(`/user/login`, data)

// 分页查询
export const queryUserPage = (data) => request.post(`/user/page`, data)

// 查询用户数据列表
export const queryUser = (data) => request.get(`/sys-user`, data)

// 新增用户
export const addUser = (data) => request.post(`/sys-user`, data)

// 删除用户
export const deleteUser = (id) => request.delete(`/sys-user/${id}`)

// 更新用户
export const updateUser = (data) => request.put(`/sys-user`, data)